package legumes.client.evt.main;

import legumes.shared.domain.CustomerDTO;

import com.google.gwt.event.shared.GwtEvent;

public class UserConnectedEvent extends GwtEvent<UserConnectedEventHandler> {

	public static Type<UserConnectedEventHandler> TYPE = new Type<UserConnectedEventHandler>();
	
	private CustomerDTO customer;
	
	public UserConnectedEvent(CustomerDTO customer_) {
		customer = customer_;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<UserConnectedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(UserConnectedEventHandler handler) {
		handler.onUserConnected(this);
	}

	public CustomerDTO getCustomerDTO() {
		return customer;
	}

}
